package eudjok

import grails.test.*

class MusicaTests extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testContraints() {
		mockDomain(Musica)
		
		def musica = new Musica(url:"")
		
		assertFalse 'Url nao pode ser null', musica.validate()
		
		assertEquals null, musica.errors.url

    }
}
